

/**
 * 
 * 
 * API:
 * ---------------
 * getBPMObjectType()
 * fromXML(xmlNode)
 * 
 */
(function(global){

    'use strict';

    const logger = WorkflowUtil.newLogger("WorkflowApp/BPMStart");

    let BPMStart = function () {

        BPMStart.__super__.constructor.apply(this, arguments);

        this.addAttr("customName", "", "ncn");
        this.addAttr("hasAdvanceEvent", "0", "ae", true);
        this.addAttr("copyNumber", "", "h");
        this.addAttr("copyFrom", "", "g");
        this.addAttr("pasteTo", "", "f");
        this.addAttr("isValid", "", "b");
    };
    //继承
    WorkflowUtil.extend(BPMStart, global.BPMStatus);
    
    
    BPMStart.prototype.getBPMObjectType = function(){
        return WorkflowConstant.bpmObjType.BPMStart;
    };
    
    /**
     * 解析xml
     * @param xmlNode
     */
    BPMStart.prototype.fromXML = function(xmlNode){
        
        
      //解析节点属性
        this.transXMLNode2BPMObject(xmlNode);
        
        //调用父类节点解析
        BPMStart.__super__.fromXML.apply(this, [xmlNode]);
    };
    
    global.BPMStart = BPMStart;
    
})(WorkflowApp);